package Year2021.month10.Day21.Day25;

public class Car {
    public String brand;
    public String color;
    public String licensePlate;//车牌

    public Car(String brand, String color, String licensePlate) {
        this.brand = brand;
        this.color = color;
        this.licensePlate = licensePlate;
    }

    public void show(){
        System.out.println(brand+"的颜色为"+color+"\t"+"车牌号为"+licensePlate);
    }
    //启动;
    public void startUp(){
        System.out.println(brand+"这辆车开始启动了！");
    }
    //加速;
    public void speedUP(){
        System.out.println("路上畅通无阻，开始加速！");

    }
    //刹车;
    public void brake(){
        System.out.println("路上遇到一只流浪猫，紧急刹车！");
    }
}
